package com.youlai.system.controller;

import com.youlai.system.common.result.Result;
import com.youlai.system.model.vo.ProductStatsVO;
import com.youlai.system.service.ProductStatsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: ProductStatsController
 * Package: com.youlai.system.controller
 * Description:
 *
 * @Author LIEX
 * @create 2024/3/11 14:12
 * @Version 1.0
 */
@RestController
@RequestMapping("/product/stats")
public class ProductStatsController {
    @Resource
    ProductStatsService productStatsService;
    @GetMapping
    public Result<ProductStatsVO> getProductStats(){

        return productStatsService.getProductStats();
    }
}
